﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using zkemkeeper;

namespace ZKLibrarys.Models
{
    /// <summary>
    /// 中控设备参数模型
    /// </summary>
    public class ModelZKMachine
    {
        /// <summary>
        /// 是否已经建立连接
        /// </summary>
        public bool IsConnected { get; set; }

        /// <summary>
        /// 机号
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        public string IP { get; set; }

        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public int Pass { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 当前用户数
        /// </summary>
        public int UserCurrentNum { get; set; }

        /// <summary>
        /// 总计用户数
        /// </summary>
        public int UserTotalNum { get; set; }

        /// <summary>
        /// 当前指纹数
        /// </summary>
        public int FingerCurrentNum { get; set; }

        /// <summary>
        /// 总计指纹数
        /// </summary>
        public int FingerTotalNum { get; set; }

        /// <summary>
        /// 当前考勤记录数
        /// </summary>
        public int RecordsCurrentNum { get; set; }

        /// <summary>
        /// 总计考勤记录数
        /// </summary>
        public int RecordsTotalNum { get; set; }

        /// <summary>
        /// 总计密码数
        /// </summary>
        public int PasswordsTotalNum { get; set; }

        /// <summary>
        /// 总计管理员数
        /// </summary>
        public int AdminsTotalNum { get; set; }

        /// <summary>
        /// 中控设备API类
        /// </summary>
        public CZKEMClass ZKMachineClass { get; set; }
    }
}
